import ajax from './ajax';

const BASE_URL = 'https://wxapp.gzmmkj.cn/api/';


//用户授权登陆
export const postCode = (params) => ajax(BASE_URL + 'auth/wxLogin', params, 'POST');
//获取用户信息
export const getUserInfo = (params) => ajax(BASE_URL + 'getUserInfo', params);
//获取绑定手机验证码
export const postSendVerificationCode = (params) => ajax(BASE_URL + 'auth/sendVerificationCode', params, 'POST');
//绑定手机号
export const postBindingPhone = (params) => ajax(BASE_URL + 'auth/bindingPhone', params, 'POST');
//记录分销
export const wxShare = (params) => ajax(BASE_URL + 'wxShare', params, 'POST');
//获取名片二维码
export const getMyCardShareQRCode = (params) => ajax(BASE_URL + 'getMyCardShareQRCode', params);
//获取轮播图数据
export const getCarousel = (params) => ajax(BASE_URL + 'other/getBannerList', params);
//获取行业列表（筛选框）
export const getIndustryList = (params) => ajax(BASE_URL + 'getIndustryList', params);
//获取首页品牌推荐
export const getIndexBrandRecommend = (params) => ajax(BASE_URL + 'getIndexBrandRecommend', params);

// 获取热榜
export const getHotList = (params) => ajax(BASE_URL + 'getHotList', params);
// 获取首页
export const getIndex = (params) => ajax(BASE_URL + 'getIndex', params);

// 获取积分记录
export const getCurrentIntegralRecord = (params) => ajax(BASE_URL + 'getCurrentIntegralRecord', params);

// 获取积分规则
export const getIntegralRule = (params) => ajax(BASE_URL + 'getIntegralRule', params);

//获取公司列表
export const getCompanyList = (params) => ajax(BASE_URL + 'getCompanyList', params);
//人物云集
export const getCharacterList = (params) => ajax(BASE_URL + 'getCharacterList', params);


//获取公司详情
export const getCompanyDetail = (params) => ajax(BASE_URL + 'getCompanyDetail', params);
//获取人物详情
export const getCharacterDetail = (params) => ajax(BASE_URL + 'getCharacterDetail', params);
//获取品牌详情
export const getBrandDetail = (params) => ajax(BASE_URL + 'getBrandDetail', params);

// 获取我的团队
export const getMyTeam = (params) => ajax(BASE_URL + 'getMyTeam', params);

// 搜索品牌、人物、企业
export  const  getSearchSomething = (params) =>ajax(BASE_URL+'other/searchSomething',params);

// 获取搜索记录
export  const  getSearchHistory= (params) =>ajax(BASE_URL+'other/getSearchKeyword',params);

// 删除我的搜索记录
export  const  delMyKeywordRecord= (params) =>ajax(BASE_URL+'other/delMyKeywordRecord',params,'POST');

// 获取点赞
export  const  sendLike= (params) =>ajax(BASE_URL+'other/sendLike',params,'POST');

//获取我的名片
export const getMyselfBusinessCard = (params) => ajax(BASE_URL + 'getMyselfBusinessCard', params);
//完善用户个人信息
export const completeData = (params) => ajax(BASE_URL + 'completeData', params, 'POST');

//获取公司名片
export const getCompanyCardData = (params) => ajax(BASE_URL + 'getCompanyCardData', params);
//设置公司名片信息
export const setCompanyCardData = (params) => ajax(BASE_URL + 'setCompanyCardData', params, 'POST');

//识别图片
export const getInfoByImg = (params) => ajax(BASE_URL + 'getInfoByImg', params, 'POST');

//获取用户权益
export const getUserRight = (params) => ajax(BASE_URL + 'getUserRight', params);

//发布商务留言
export const sendBusinessMessage = (params) => ajax(BASE_URL + 'sendBusinessMessage', params, 'POST');

//获取服务协议
export const getServiceAgreement = (params) => ajax(BASE_URL + 'getServiceAgreement', params);

//获取给我的商务留言
export const getBusinessMessage = (params) => ajax(BASE_URL + 'getBusinessMessage', params);